package cn.xuqiudong.backend.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * 描述:
 *      controller下路径前缀配置： 不同的包加不同的前缀
 *          没有前缀则加统一前缀
 * <p>
 *     backend.path.prefix.defaulted=/api
 * backend.path.prefix.prefix-mapping.[cn.xuqiudong.backend.system]=/api/system
 * backend.path.prefix.prefix-mapping.[key2]=prefix2
 * </p>
 *
 * @author Vic.xu
 * @since 2025-02-11 15:57
 */
@ConfigurationProperties(value = "backend.path.prefix")
public class PathPrefixProperties {

    /**
     * 默认的前缀
     */
    private String defaulted;

    /**
     * 报名
     */
    private Map<String, String> prefixMapping;


    public String getDefaulted() {
        return defaulted;
    }

    public void setDefaulted(String defaulted) {
        this.defaulted = defaulted;
    }

    public Map<String, String> getPrefixMapping() {
        return prefixMapping;
    }

    public void setPrefixMapping(Map<String, String> prefixMapping) {
        this.prefixMapping = prefixMapping;
    }
}
